import request from '@/utils/request'

// 查询冰柜类型列表
export function listContainerType(query) {
  return request({
    url: '/genius/platform-container-type/list',
    method: 'get',
    params: query
  })
}

// 查询冰柜类型详情
export function getContainerTypeDetail(id) {
  return request({
    url: '/genius/platform-container-type/' + id,
    method: 'get'
  })
}

// 新增冰柜类型
export function addContainerType(data) {
  return request({
    url: '/genius/platform-container-type',
    method: 'post',
    data: data
  })
}

// 修改冰柜类型
export function updateContainerType(data) {
  return request({
    url: '/genius/platform-container-type',
    method: 'put',
    data: data
  })
}
// 导出冰柜类型
export function exportContainerType(data) {
  return request({
    url: '/genius/platform-container-type/export',
    method: 'post',
    data: data
  })
}

// 逻辑删除冰柜类型信息
export function delContainerType(ids) {
  return request({
    url: '/genius/platform-container-type/' + ids   ,
    method: 'delete'
  })
}
